import { API_POST_CHOOSE_IMAGE } from '@/api/user/choose_image'
import { API_POST_MY_SETTING_INFO } from '@/api/user/get_my_setting_info'
import { API_GET_USER_PHONE } from '@/api/user/get_user_phone'
import { API_POST_EDIT_INFO } from '@/api/user/set_my_info'
import _Fetch from '@/server/Fetch'

export async function get_my_setting_info_api() {
  return await _Fetch(API_POST_MY_SETTING_INFO)
}
export async function upload_img_api(url: string) {
  return await _Fetch(API_POST_CHOOSE_IMAGE, url)
}
export async function edit_my_info(params: any) {
  return await _Fetch(API_POST_EDIT_INFO, params)
}
export async function upload_address_api(address: string) {
  return await _Fetch(API_POST_EDIT_INFO, { address })
}
export async function get_user_phone_api(params) {
  return await _Fetch(API_GET_USER_PHONE, params)
}
